package bishi.Huawei;

import java.util.Scanner;

/**
 * @Classname Main3
 * @Description TODO
 * @Date 2021/9/1 19:30
 * @Created by ASUS
 */
public class Main3 {

    public static int[][] getData() {
        Scanner scanner = new Scanner(System.in);
        int M = Integer.parseInt(scanner.nextLine());
        int N = Integer.parseInt(scanner.nextLine());
        int[][] data = new int[M][N];
        for (int i = 0; i < data.length; i++) {
            String[] s = scanner.nextLine().split(" ");
            for (int j = 0; j < data[0].length; j++) {
                data[i][j] = Integer.parseInt(s[j]);
            }
        }
        scanner.close();
        visited = new boolean[M][N];
        return data;
    }

    static int cnt = 0;
    static int[] dx = new int[]{-1, 1, 0, 0}, dy = new int[]{0, 0, -1, 1};
    static boolean[][] visited;

    public static int solution() {
        int[][] data = getData();
        return 0;
    }

    public void dfs(int[][] data, int x, int y) {
        if (data[x][y] == 0) {
            for (int i = 0; i < 4; i++) {
                int a = x + dx[i], b = y + dy[i];
                if (!visited[a][b]) {
                    if (data[a][b] == 0) dfs(data, a, b);
                    else {

                    }
                }
            }
        }
    }
}
